package Task;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;

public class JTask<T> {

    private static final List<Consumer<Exception>> exceptionHandler = new ArrayList<>();

    public static void AddExceptionHandler(Consumer<Exception> handler)
    {
        exceptionHandler.add(handler);
    }

    public static void RemoveExceptionHandler(Consumer<Exception> handler)
    {
        exceptionHandler.remove(handler);
    }



}
